<?php

/* Deletes the user from the `members` table
* @header username
*/
	include_once("session.php");
	include_once("connect_to_database.php");
	
	$user = mysql_real_escape_string($_POST['user']);	

	//Delete name 
	mysql_query("DELETE FROM members WHERE username = '".$user."'");
	
	$_SESSION = array(); //unset session variables
	session_destroy();   //destroy session
?>